// Car/ GameStatusView View

(function( window, undefined ) {

var GameStatusView = Class({
	name: "GameStatusView",
	parent: "View",
	constructor: function() {
		var _info;
		//var _$template;
		var _$object = $("<div id='info'></div>");
				
		return {
			__construct: function( info ) {
				_info = info;
				//_$template = $("#car_template_gamestatusview");
			},
			
			object: function() {
				return _$object;
			},
			
			update: function() {
				//console.log( this, "update", _info );
				
				var $element = $.tmpl( "car.template.gamestatusview", _info );
			
				_$object.empty();
				_$object.append( $element );
			}
		};
	}
});

Class.View.GameStatusView = GameStatusView;

})(window);